package com.ftg.product.exam.service.impl;

import com.ftg.product.exam.entity.SysEmpRole;
import com.ftg.product.exam.mapper.SysEmpRoleMapper;
import com.ftg.product.exam.service.SysEmpRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* 员工角色中间表相关Service实现
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Service
@Slf4j
public class SysEmpRoleServiceImpl extends BaseCustomServiceImpl<SysEmpRoleMapper, SysEmpRole> implements SysEmpRoleService {

    @Autowired
    SysEmpRoleMapper sysEmpRoleMapper;

    @Override
    public int saverole(Long empid) {
        return sysEmpRoleMapper.saverole(empid);
    }

    @Override
    public Long selectmaxid() {
        return sysEmpRoleMapper.selectmaxid();
    }

    @Override
    public int updateforrole(Long roleid, Long empid) {
        return sysEmpRoleMapper.updateforrole(roleid,empid);
    }
}
